﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ControlStock
{
    public partial class AdministrarDeposito : System.Web.UI.Page
    {
        private void nuevo()
        {
            lbldeposito.Visible = false;
            txtdeposito.Visible = false;
            btnbuscar.Visible = false;
            rdbmodificar.Checked = false;
        }

        private void modificar()
        {
            lbldeposito.Visible = true;
            txtdeposito.Visible = true;
            btnbuscar.Visible = true;
            rdbnuevo.Checked = true;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            nuevo();
        }

        protected void rdbnuevo_CheckedChanged(object sender, EventArgs e)
        {
            nuevo();
        }

        protected void rdbmodificar_CheckedChanged(object sender, EventArgs e)
        {
            modificar();
        }
    }
}
